package com.example.springstudy.dao.res;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

@Data
public class WeChatPayRes {
    @SerializedName("return_code")
    private String returnCode;

    @SerializedName("return_msg")
    private String returnMsg;

    @SerializedName("appid")
    private String appId;

    @SerializedName("mch_id")
    private String mchId;

    @SerializedName("device_info")
    private String deviceInfo;

    @SerializedName("nonce_str")
    private String nonceStr;

    @SerializedName("sign")
    private String sign;

    @SerializedName("result_code")
    private String resultCode;

    @SerializedName("err_code")
    private String errCode;

    @SerializedName("err_code_des")
    private String errCodeDes;

    //当return_code 和result_code都为SUCCESS的时，还会包括以下字段：
    //交易成功判断条件：return_code和result_code都为SUCCESS且trade_type为MICROPAY

    @SerializedName("openid")
    private String openid;

    @SerializedName("is_subscribe")
    private Boolean isSubscribe;

    @SerializedName("trade_type")
    private String tradeType;

    @SerializedName("bank_type")
    private String bankType;

    @SerializedName("fee_type")
    private String feeType;

    @SerializedName("total_fee")
    private String totalFee;

    @SerializedName("settlement_total_fee")
    private String settlementTotalFee;

    @SerializedName("coupon_fee")
    private String couponFee;

    @SerializedName("cash_fee_type")
    private String cashFeeType;

    @SerializedName("cash_fee")
    private String cashFee;

    @SerializedName("transaction_id")
    private String transactionId;

    @SerializedName("out_trade_no")
    private String outTradeNo;

    @SerializedName("attach")
    private String attach;

    @SerializedName("time_end")
    private String timeEnd;

    @SerializedName("promotion_detail")
    private String promotionDetail;

}
